﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using _40_DisplayName.Models;

namespace _40_DisplayName.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Details(int id)
        {
            SampleDBContext db = new SampleDBContext();
            Employee employee = db.Employees.Single(x => x.Id == id);
            return View(employee);
        }

    }
}
